package thymeleaf.notes.entities;

/**
 * User
 */
public class User {

    private String  firstName   = null;
    private String  lastName    = null;
    private String  nationality = null;
    private Integer age         = null;

    public User( final String firstName, final String lastName, final String nationality, final Integer age ) {
        super();
        this.firstName = firstName;
        this.lastName = lastName;
        this.nationality = nationality;
        this.age = age;
    }

    public String getFirstName() {
        return this.firstName;
    }

    public String getLastName() {
        return this.lastName;
    }

    public String getName() {
        return this.firstName + " " + this.lastName;
    }

    public String getNationality() {
        return this.nationality;
    }

    public Integer getAge() {
        return this.age;
    }

    public String createCompleteName() {
        return getName();
    }

    public String createCompleteNameWithSeparator( String separator ) {
        return this.firstName + separator + this.lastName;
    }

}
